import request from '@/utils/request'

// 查询腾讯新闻热搜列表
export function listTxhot(query) {
  return request({
    url: '/system/txhot/list',
    method: 'get',
    params: query
  })
}

// 查询腾讯新闻热搜详细
export function getTxhot(id) {
  return request({
    url: '/system/txhot/' + id,
    method: 'get'
  })
}

// 新增腾讯新闻热搜
export function addTxhot(data) {
  return request({
    url: '/system/txhot',
    method: 'post',
    data: data
  })
}

// 修改腾讯新闻热搜
export function updateTxhot(data) {
  return request({
    url: '/system/txhot',
    method: 'put',
    data: data
  })
}

// 删除腾讯新闻热搜
export function delTxhot(id) {
  return request({
    url: '/system/txhot/' + id,
    method: 'delete'
  })
}
